JZ10 矩阵覆盖
https://www.nowcoder.com/practice/72a5a919508a4251859fb2cfb987a0e6
public class Solution {
public int rectCover(int target) {
if(target < 3) return target;
int result = 0;
int pre = 1;
int next = 2;
for(int i = 3; i < target + 1; i++) {
result = pre + next;
pre = next;
next = result;
}
return result;
}
}